package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2021-12-28-16:52
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     * 远程调用，根据id获取sku商品信息
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R getById(@PathVariable("skuId") Long skuId);
}
